package test.pcs;

import com.payment.lc.pcs.client.wrap.bo.ProductionTimeAttributes;
import com.payment.lc.pcs.client.wrap.bo.ProductionValueAttributes;
import com.payment.lc.pcs.client.wrap.model.ZiGuanTime;
import com.payment.lc.pcs.client.wrap.service.ProductionWrapService;
import com.payment.lc.pcs.common.enums.BizType;
import com.payment.lc.pcs.service.api.DynamicDataService;
import com.payment.lc.pcs.service.api.ProductionService;
import com.payment.lc.pcs.service.api.nocache.PcsQueryService;
import com.payment.lc.pcs.service.domain.ListWrapper;
import com.payment.lc.pcs.service.domain.Production;
import com.payment.lc.pcs.util.DateComputeUtil;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import test.BaseTest;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * Created on 2016/8/8.
 */
public class Demo2Pcs1109 extends BaseTest {
    private SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
    private SimpleDateFormat sdf1 = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");

    @Autowired
    ProductionService productionService;
    @Autowired
    ProductionWrapService productionWrapService;

    @Autowired
    DynamicDataService dynamicDataService;

    @Autowired
    PcsQueryService pcsQueryService;

    @Autowired
    DateComputeUtil dateComputeUtil;

    @Test
    public void test() {
        test2();
    }

    void test2() {
//        String prodCode = "17220064";
        String prodCode = "GROUP_SF21";
        BizType bizType = BizType.Fundin;
        Object bizs1 = productionService.getProduction(prodCode);
        display(bizs1);
    }
    void test3(){
        ListWrapper<String> wrapper = pcsQueryService.queryOnSalePEProducts();
        display(wrapper);
    }
}